/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package chatsystem.patternState;

import chatsystem.ChatSystemModel;
import chatsystem.ChatSystemModel.Etat;

/**
 *
 * @author Diane
 */
public class OnlineState extends ChatSystemModel.Etat {

    @Override
    public void operationEtatOffline(ChatSystemModel pClasse) {
        System.out.println("Etat changé Online -> Offline");
    }

    @Override
    public void operationEtatOnline(ChatSystemModel pClasse) {
        System.out.println("Classe déjà dans l'état Online");
    }

    @Override
    public void operationEtatProcessUsersList(ChatSystemModel pClasse) {
        System.out.println("Etat changé Online -> ProcessUsersList");
    }

    @Override
    public void afficherEtat() {
        System.out.println("Etat courant : Online");
    }

    @Override
    public Etat getEtat() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

}
